<!--
  This file is a part of the open-eBackup project.
  This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0.
  If a copy of the MPL was not distributed with this file, You can obtain one at
  http://mozilla.org/MPL/2.0/.
  
  Copyright (c) [2024] Huawei Technologies Co.,Ltd.
  
  THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
  EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
  MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
  -->

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!--
  This file is a part of the open-eBackup project.
  This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0.
  If a copy of the MPL was not distributed with this file, You can obtain one at
  http://mozilla.org/MPL/2.0/.
  
  Copyright (c) [2024] Huawei Technologies Co.,Ltd.
  
  THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
  EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
  MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
  -->

<!--
  This file is a part of the open-eBackup project.
  This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0.
  If a copy of the MPL was not distributed with this file, You can obtain one at
  http://mozilla.org/MPL/2.0/.
  
  Copyright (c) [2024] Huawei Technologies Co.,Ltd.
  
  THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
  EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
  MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
  -->

<html lang="zh-cn" xml:lang="zh-cn">
 <head>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="DC.Type" content="topic">
  <meta name="DC.Title" content="步骤1：配置XBSA库路径">
  <meta name="product" content="">
  <meta name="DC.Relation" scheme="URI" content="informix-0008.html">
  <meta name="prodname" content="">
  <meta name="version" content="">
  <meta name="brand" content="30-OceanProtect 备份一体机 1.5.0-1.6.0 帮助中心">
  <meta name="DC.Publisher" content="20240320">
  <meta name="prodname" content="csbs">
  <meta name="documenttype" content="usermanual">
  <meta name="DC.Format" content="XHTML">
  <meta name="DC.Identifier" content="ZH-CN_TOPIC_0000001792358014">
  <meta name="DC.Language" content="zh-cn">
  <link rel="stylesheet" type="text/css" href="public_sys-resources/commonltr.css">
  <title>步骤1：配置XBSA库路径</title>
 </head>
 <body style="clear:both; padding-left:10px; padding-top:5px; padding-right:5px; padding-bottom:5px">
  <a name="ZH-CN_TOPIC_0000001792358014"></a><a name="ZH-CN_TOPIC_0000001792358014"></a>
  <h1 class="topictitle1">步骤1：配置XBSA库路径</h1>
  <div>
   <p>备份Informix/GBase 8s数据库前，需配置XBSA共享库指定路径和文件名。</p>
   <div class="section">
    <h4 class="sectiontitle">操作步骤</h4>
    <ol>
     <li><span>登录Informix/GBase 8s数据库所在的主机。</span></li>
     <li><span>Informix数据库执行<strong>su -informix</strong>命令切换为Informix数据库用户，GBase 8s数据库执行<strong>su - gbasedbt</strong>命令切换为GBase 8s数据库用户。</span></li>
     <li><span>执行<strong>cat /</strong><em>数据库安装目录</em><strong>/etc/onconfig |grep ^BAR_BSALIB_PATH</strong>命令，查询是否配置实例。</span><p></p><p>若出现以下回显则表示已配置，操作结束，否则需要继续执行后续操作配置实例。</p> <p>备份一体机1.5.0版本：</p> <pre class="screen">BAR_BSALIB_PATH /usr/openv/lib/libxbsa64iif.so</pre> <p>备份一体机1.6.0及之后版本：</p> <pre class="screen">BAR_BSALIB_PATH /<em>代理安装的父目录</em>/DataBackup/ProtectClient/interfaces/xbsa/lib/libxbsa64iif.so</pre>
      <div class="note">
       <img src="public_sys-resources/note_3.0-zh-cn.png"><span class="notetitle"> </span>
       <div class="notebody">
        <p><strong>onconfig</strong>为实例配置文件名，具体以实际为准。</p>
       </div>
      </div> <p></p></li>
     <li><span>执行<strong>vi /</strong><em>数据库安装目录</em><strong>/etc/onconfig</strong>进入实例配置文件，配置数据库实例。</span></li>
     <li><span>修改<strong>BAR_BSALIB_PATH</strong>参数取值。</span><p></p>
      <ul>
       <li>备份一体机1.5.0版本：修改<strong>BAR_BSALIB_PATH</strong>参数取值为/usr/openv/lib/libxbsa64iif.so。<p>例如：BAR_BSALIB_PATH /usr/openv/lib/libxbsa64iif.so。</p></li>
       <li>备份一体机1.6.0及之后版本，修改<strong>BAR_BSALIB_PATH</strong>参数取值为/<em>代理安装的父目录</em>/DataBackup/ProtectClient/interfaces/xbsa/lib/libxbsa64iif.so。<p>例如：BAR_BSALIB_PATH /opt/DataBackup/ProtectClient/interfaces/xbsa/lib/libxbsa64iif.so。</p></li>
      </ul> <p></p></li>
     <li><span>GBase 8s数据库需执行否则跳过。</span><p></p>
      <ol type="a">
       <li>执行<strong>cat /</strong><em>数据库安装目录</em><strong>/etc/onconfig |grep ^BAR_IXBAR_PATH</strong>命令，查询是否配置实例。<p>若出现以下回显则表示已配置，操作结束，否则需要继续执行后续操作配置实例。</p> <pre class="screen">BAR_IXBSA_PATH /<em>数据库安装目录</em>/backups/ixbar.0</pre></li>
       <li>执行以下命令配置数据库实例。<pre class="screen">mkdir /<em>数据库安装目录</em>/backups; onmode -wf BAR_IXBAR_PATH=/数据库安装目录/backups/ixbar.0</pre></li>
       <li>执行<strong>cat /</strong><em>数据库安装目录</em><strong>/etc/onconfig |grep ^BAR_IXBAR_PATH</strong>命令，查询是否配置实例。</li>
      </ol> <p></p></li>
    </ol>
   </div>
  </div>
  <div>
   <div class="familylinks">
    <div class="parentlink">
     <strong>父主题：</strong> <a href="informix-0008.html">备份Informix/GBase 8s</a>
    </div>
   </div>
  </div>
 </body>
</html>